 <!--:
	var label = "菜单";
	var typeVal = isEmpty(type) ? menu.type : parseInt(type);
	if(typeVal == 0){
		label = "模块";
	}
-->
 <form id="form-menu" class="form-horizontal">
     <div class="form-group ">
         <input type="hidden" id="menu-uuid" name="menu.uuid" value="${menu.uuid}">
         <input type="hidden" id="menu-type" name="menu.type" value="${typeVal}">
         <label class="control-label col-xs-3" for="menu-name">${label}名称：</label>
         <div class="col-xs-9">
             <input dataValid="*" type="text" class="form-control input-sm" id="menu-name" name="menu.name" value="${menu.name}" placeholder="${label}名称">
         </div>
     </div>
	 <!--: if(typeVal == 1){-->
     <div class="form-group">
         <label class="control-label col-xs-3" for="menu-url">访问路径：</label>
         <div class="col-xs-9">
             <input dataValid="*" type="text" class="form-control input-sm" id="menu-url" name="menu.url" value="${menu.url}" placeholder="访问路径">
         </div>
     </div>

     <div class="form-group">
     	 <label class="control-label col-xs-3" for="menu-parentid">所属模块：</label>
	     <div class="col-xs-9">
	         <x:select dataValid="*" models="${modelSel('menu','0')}" defaultOption="请选择" field="uuid,name" value="${menu.parentid}"
	         id="menu-parentid" name="menu.parentid" class="chosen-select form-control" >
	         </x:select>
	     </div>
     </div>
     <!--:}  -->
     
     <!--: if(typeVal == 0){-->
     <div class="form-group">
     	 <label class="control-label col-xs-3" for="menu-platformid">所属平台：</label>
	     <div class="col-xs-9">
	         <x:select dataValid="*" models="${modelSel('platform','')}" defaultOption="请选择" field="uuid,name" value="${menu.platformid}"
	         id="menu-platformid" name="menu.platformid" class="chosen-select form-control" >
	         </x:select>
	     </div>
     </div>
     <!--:}  -->
     
     <div class="form-group">
         <label class="control-label col-xs-3" for="menu-sorting">${label}顺序：</label>
         <div class="col-xs-9">
             <input dataValid="*" type="text" class="form-control input-sm" id="menu-sorting" name="menu.sorting" value="${menu.sorting}" placeholder="${label}顺序">
         </div>
     </div>
 </form>
